import React from 'react'
import Student from './Student'

const StudentList = ({ students }) => {
  return (
    <div>
        <h1>Student List</h1>
        <ul>
            {students.map((student) => (
                <Student key={student.id} {...student} />
            ))}
        </ul>
    </div>
  )
}

export default StudentList  